package com.cms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cms.dao.mapper.PageContentMapper;
import com.cms.exception.SystemDBException;
import com.cms.model.TrPageContent;
import com.cms.service.PageContentService;

@Service
public class PageContentServiceImpl implements PageContentService{
  
	 @Autowired
	 private PageContentMapper pageContentMapper;
	
	 /**
	  * 
	  * @throws SystemDBException
	  */
	 public void savePageContent(TrPageContent content)throws SystemDBException
	 {
		 pageContentMapper.savePageContent(content);
	 }
	 
	 /***
	  * 
	  * @param content
	  * @throws SystemDBException
	  */
	 public void updatePageContent(TrPageContent content)throws SystemDBException
	 {
		 pageContentMapper.updatePageContent(content);
	 }
	 
	 
	 /***
	  * 
	  * @param content
	  * @return
	  * @throws SystemDBException
	  */
	 public TrPageContent getPageContent(TrPageContent content)throws SystemDBException
	 {
		 return pageContentMapper.getPageContent(content);
	 }

	@Override
	public void deletePageContent(TrPageContent content) throws SystemDBException 
	{
         pageContentMapper.deletePageContent(content);		
	}
}
